

        <g:set var="entityName" value="${message(code: 'courseware.label', default: 'Courseware')}" />
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
                            <g:sortableColumn property="title" title="${message(code: 'courseware.title.label', default: 'Title')}" />
                        
                            <th><g:message code="courseware.category.label" default="Category" /></th>
                          
                            <g:sortableColumn property="hit" title="${message(code: 'courseware.hit.label', default: 'Hit')}" /> 
                            <th><g:message code="courseware.editor.label" default="Editor" /></th>
                            <th><g:message code="courseware.lastEditor.label" default="lastEditor" /></th>
                            <th></th>
                   	    
                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${coursewareInstanceList}" status="i" var="coursewareInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">
                        
                            <td><g:link action="show" id="${coursewareInstance.id}">${fieldValue(bean: coursewareInstance, field: "title")}</g:link></td>
                        
                            <td>${fieldValue(bean: coursewareInstance, field: "category")}</td> 
                        
                            <td> ${coursewareInstance.hit}</td>
                         
                        
                            <td>${fieldValue(bean: coursewareInstance, field: "editor")}</td>
                            <td>${fieldValue(bean: coursewareInstance, field: "lastEditor")}</td>
                        
                            <td class="operate"> 
                                    <x:operate width="100"> 
                                            <g:link  action="edit" id="${coursewareInstance.id}" params="${['categoryid': coursewareInstance?.category?.id]}"><g:message code="default.button.edit.label" default="修改" /></g:link>
                                            <g:link  action="delete" id="${coursewareInstance.id}" onclick="return confirm('${message(code: 'default.button.delete.confirm.message', default: 'Are you sure?')}');"><g:message code="default.button.delete.label" default="delete" /></g:link>
                                     </x:operate> 
                            </td>
                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
            <div class="paginateButtons">
                <g:paginate total="${coursewareInstanceTotal}" />
            </div>
